<?php
	#############################################################################################
	# Programmer: สมบูรณ์  กองลี																#
	# Email		: hugo8xx@hotmail.com.															#
	#############################################################################################
	
	if (isset($_POST["PHPSESSID"])) {
		session_id($_POST["PHPSESSID"]);
	} else if (isset($_GET["PHPSESSID"])) {
		session_id($_GET["PHPSESSID"]);
	}

	session_cache_expire(10);
	session_start();
	$ss_id	= session_id();

	$_SESSION['profile'] = $_SESSION['profile'] ? $_SESSION['profile'] : array();
	extract($_SESSION['profile'], EXTR_PREFIX_ALL, "ss");
	$ss_avatar		= $ss_avatar ? $ss_avatar : "default.jpg";
	
	function acl() {		
		if(!$_SESSION['profile']['member_id']){
			$_SESSION['return_path'] = $_SERVER['REQUEST_URI'];
			header("location: /profile/login/");
			exit;
		}
		return $_SESSION['m']['member_id'];
	}

?>